from datetime import datetime
from time import mktime

class PuzaTime:
    @staticmethod
    def ConvertToUnix(s):
        d = datetime.strptime(s, "%a %b %d %H:%M:%S +0000 %Y")
        d2 = mktime(d.timetuple())+1e-6*d.microsecond
        return d2 
    
        